package com.gp.service;

import com.github.pagehelper.PageInfo;
import com.gp.entity.Role;
import com.gp.util.CommonResult;
import org.apache.ibatis.annotations.Param;

/**
 * @author 来一杯凉咖
 * @create 2022/3/11 9:02
 */
public interface RoleService {
    PageInfo<Role>  getAllRoleForPage(Integer page, Integer size);
    CommonResult editRole(Role role);
    CommonResult deleteRoleById(Integer roleId);
    PageInfo<Role> queryRole(Integer page, Integer size, @Param("roleName") String roleName, @Param("createBy") String createBy);
    CommonResult fenMenu(Integer roleId,Integer[] MenuId);
}
